package presentation;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class CustomerFrame extends JFrame {
	
	private CustomerUIManager manager;
	
	private static Dimension frameSize = new Dimension(1019, 721);
	
	private CustomerHeadPanel headPanel;
	private CustomerHomePanel homePanel;

	private JPanel contentPane;
	
	public CustomerFrame() {
		manager = new CustomerUIManager();
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(frameSize);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		headPanel = new CustomerHeadPanel(manager);
		headPanel.setLocation(20, 10);
		contentPane.add(headPanel);
		
		homePanel = new CustomerHomePanel(manager);
		homePanel.setLocation(20, 77);
		contentPane.add(homePanel);
	}

}
